<!DOCTYPE html>
<html>
<head>
    <title>Function Example 6</title>
    <script type="text/javascript">
        function howManyArgs() {
            alert(arguments.length);
        }
        
        howManyArgs("string", 45);    //2
        howManyArgs();                //0
        howManyArgs(12);              //1

    </script>
</head>
<body>

</body>
</html>